<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/view/common/common.jsp"%>
<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>公司信息</title>
		<link rel="Shortcut Icon" href="${url}/img/favicon.ico">
		<link rel="stylesheet" href="${url}/vendor/font-awesome/css/font-awesome.min.css" />
		<link rel="stylesheet" href="${url}/css/common.css" />
		<link rel="stylesheet" href="${url}/css/header.css" />
		<link rel="stylesheet" href="${url}/css/account-management.css" />
		<link rel="stylesheet" href="${url}/css/company-info.css" />
		<link rel="stylesheet" href="${url}/css/dropdown.css" />
	</head>

	<body>
		<%@ include file="/WEB-INF/view/common/header.jsp"%>

		<div class="wrapper">
			<div class="content">
				<ul class="left">
					<li class="left-item active">
						<a href="${url}/company-info.html">公司信息</a>
					</li>
					<li class="left-item">
						<a href="${url }/pub/Pub/CompanyResetPassword.action">修改密码</a>
					</li>
				</ul>
				<div class="right">
				<form action="${url }/company/Company/saveCompanyInfo.action" method="POST">
					<ul class="input-wrapper">
						<li class="input-group">
							<label for="companyName" class="clogo title">公司logo：</label>
							<div class="company-logo">
								<img src="${url}/img/resume-default.png" alt="" class="company-logo-default" />
								<img src="${url}/img/resume-hover-img.png" alt="" class="company-logo-hover" />
								<input type="file" id="inputFile" class="input-file" title="支持jpg、jpeg、gif、png格式，文件小于10M" />
							</div>
						</li>
						<li class="input-group">
							<label for="companyName" class="title">公司名称：</label>
							<input type="text" name="company.name"  value="${company.name }" />
						</li>
						<li class="input-group">
							<span class="sel title">公司行业：</span>
						<div class="dropdown">
							 <span class="text" id="tradeText">- 请选择 -</span>
							 <i class="fa fa-sort-desc triangle"></i>
							 <div class="option" id="tradeUl">
								<ul>
								<li data-value="">- 请选择 -</li>
								<c:forEach  items="${tradeList }" var="trade">
								<li data-value="${trade.id }">${trade.name }</li>
								</c:forEach>
							</ul>
						</div>
						<input type="hidden" name="company.tradeId" value="${company.tradeId }"/> 
					</div>

						</li>
						<li class="input-group">
							<span class="sel title">公司性质：</span>
				   		<div class="dropdown">
							<span class="text" id="natureText">- 请选择 -</span>
							<i class="fa fa-sort-desc triangle"></i>
							<div class="option" id="natureUl" >
								<ul>
								<li data-value="">- 请选择 -</li>
								<li data-value="1">国有企业</li>
								<li data-value="2">民营企业</li>
								<li data-value="3">外资企业 </li>
								<li data-value="4">其它</li>
							</ul>
						</div>
						<input type="hidden" name="company.nature" value="${company.nature}"/> 
					</div>

						</li>
						<li class="input-group">
							<span class="sel title">公司规模：</span>
							<div class="dropdown">
									<span class="text" id="sizeText">- 请选择 -</span>
									<i class="fa fa-sort-desc triangle"></i>
									<div class="option" id="sizeUl">
									<ul>
								<li data-value="">- 请选择  -</li>
								<li data-value="1">50人以下</li>
								<li data-value="2">51~100人</li>
								<li data-value="3">101~500人</li>
								<li data-value="4">501~1000人</li>
								<li data-value="5">1000人以上</li>
								</ul>
						</div>
						<input type="hidden" name="company.size" value="${company.size}"/> 
					</div>
						</li>
						<li class="input-group">
							<label for="companyPersonName" class="title">联 系 人：</label>
							<input type="text" name="company.linkman" id="companyPersonName" value="${company.linkman}" />
						</li>
						<li class="input-group">
							<label for="companyContactNum" class="title">联系电话：</label>
							<input type="text" name="company.phone" id="companyContactNum" value="${company.phone }" />
						</li>
						<li class="input-group">
							<label for="companyPlace" class="title">公司地址：</label>
							<input type="text" name="company.address" id="companyPlace" value="${company.address }" />
						</li>
						<li class="input-group">
							<label for="companyPurpose" class="title">公司宗旨：</label>
							<input type="text" name="company.purpose" id="companyPurpose" value="${company.purpose }" />
						</li>
						<li class="input-group">
							<span class="title">公司简介：</span>
							<textarea name="company.introduce">${company.introduce }</textarea>
						</li>
						<li class="input-group">
							<button class="store-btn" type="submit">保存</button>
						</li>
					</ul>
					</form>
				</div>
			</div>
		</div>
	<%@ include file="/WEB-INF/view/common/footer.jsp"%>
		<script>
			var tradeId = '${company.tradeId}';
			var nature = '${company.nature}';
			var size = '${company.size}';
		</script>

		<script src="${url}/vendor/jquery.min.js"></script>
		<script src="${url}/js/common.js"></script>
		<script src="${url}/js/company-info.js"></script>
		<script src="${url}/js/dropdown.js" ></script>
	</body>

</html>
